# coding:utf-8
from components import TitleInterface
from .plugins.image import CompressImageView, PictureConversionView, SVGConverterView


class ImageInterface(TitleInterface):
    def __init__(self, parent=None):
        super().__init__(parent)
        self.addSampleCard(CompressImageView(self))
        self.addSampleCard(PictureConversionView(self))
        self.addSampleCard(SVGConverterView(self))
        self.__initWidgets()

    def __initWidgets(self):
        self.setTitle('图片处理')
        self.setObjectName('ImageInterface')
